package reusing;

import static net.mindview.util.Print.*;

public class C extends A{
    private B b;

    public C(B b) {
        super(1);
        this.b = b;
        print("有参构造器-C");
    }

    public C() {
        this(null);
        print("无参构造器-C");
    }

    public static void main(String[] args) {
        C c = new C();
    }
}


class A {
    public A(int i) {
        print("有参构造器-A");
    }
}

class B {
    public B() {
        print("无参构造器-B");
    }
}
